package com.doit.mr.day01.MyUtil;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;

import java.net.URI;

/**
 * @DATE 2021/12/7/19:29
 * @Author MDK
 * @Version 2021.2.2
 **/
public class MyUtils {
    public static FileSystem getFileSystem() throws Exception {
        return FileSystem.newInstance(new URI("hdfs://linux01:8020"), new Configuration(), "root");
    }
}
